<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MongoServices: MongoServices.ReadOnlyRepository&lt; T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">MongoServices&#160;<span id="projectnumber">0.2.0</span></div>
   <div id="projectbrief">A Service/Repository Framework for mongoDB</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_mongo_services_1_1_read_only_repository-g.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">MongoServices.ReadOnlyRepository&lt; T &gt; Class Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="MongoServices::ReadOnlyRepository-g" --><!-- doxytag: inherits="MongoServices::MongoServicesRepository-g,MongoServices::IReadOnlyRepository-g" -->
<p>The base "Read Only" repository.  
 <a href="class_mongo_services_1_1_read_only_repository-g.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for MongoServices.ReadOnlyRepository&lt; T &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_mongo_services_1_1_read_only_repository-g.png" usemap="#MongoServices.ReadOnlyRepository&lt; T &gt;_map" alt=""/>
  <map id="MongoServices.ReadOnlyRepository&lt; T &gt;_map" name="MongoServices.ReadOnlyRepository&lt; T &gt;_map">
<area href="class_mongo_services_1_1_mongo_services_repository-g.html" title="The base MongoServices repository." alt="MongoServices.MongoServicesRepository&lt; T &gt;" shape="rect" coords="0,56,288,80"/>
<area href="interface_mongo_services_1_1_i_read_only_repository-g.html" title="The interface for a "Read Only" repository." alt="MongoServices.IReadOnlyRepository&lt; T &gt;" shape="rect" coords="298,56,586,80"/>
<area href="interface_mongo_services_1_1_i_mongo_services_repository-g.html" title="The interface for the base MongoServices repository." alt="MongoServices.IMongoServicesRepository&lt; T &gt;" shape="rect" coords="0,0,288,24"/>
<area href="interface_mongo_services_1_1_i_mongo_services_repository-g.html" title="The interface for the base MongoServices repository." alt="MongoServices.IMongoServicesRepository&lt; T &gt;" shape="rect" coords="298,0,586,24"/>
<area href="class_mongo_services_1_1_read_write_repository-g.html" title="The base "Read/Write" repository." alt="MongoServices.ReadWriteRepository&lt; T &gt;" shape="rect" coords="149,168,437,192"/>
</map>
 </div></div>

<p><a href="class_mongo_services_1_1_read_only_repository-g-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IEnumerable&lt; T &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mongo_services_1_1_read_only_repository-g.html#a7a34996a56c9e2d7a8d968d1c17c7b91">GetAll</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a collection of the <a class="el" href="class_mongo_services_1_1_mongo_services_model.html" title="The base MongoServices model that every model must inherit.">MongoServicesModel</a> from the mongoDB database.  <a href="#a7a34996a56c9e2d7a8d968d1c17c7b91"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_mongo_services_1_1_read_only_repository-g.html#a70bce7f9e384fd1e6272ce8228dd739a">GetById</a> (ObjectId id)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets one <a class="el" href="class_mongo_services_1_1_mongo_services_model.html" title="The base MongoServices model that every model must inherit.">MongoServicesModel</a> from the mongoDB database.  <a href="#a70bce7f9e384fd1e6272ce8228dd739a"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;T&gt;<br/>
class MongoServices::ReadOnlyRepository&lt; T &gt;</h3>

<p>The base "Read Only" repository. </p>
<dl><dt><b>Template Parameters:</b></dt><dd>
  <table class="">
    <tr><td class="paramname">T</td><td>The <a class="el" href="namespace_mongo_services.html">MongoServices</a> model to be used by this repository.</td></tr>
  </table>
  </dd>
</dl>
<div class="typeconstraint">
<dl><dt><b>Type Constraints</b><dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>T</em></td><td>&#160;:</td><td valign="top"><em><a class="el" href="class_mongo_services_1_1_mongo_services_model.html">MongoServicesModel</a></em></td><td>&#160;</td></tr>
</table>
</dl>
</div>

<p>Definition at line <a class="el" href="_read_only_repository_8cs_source.html#l00013">13</a> of file <a class="el" href="_read_only_repository_8cs_source.html">ReadOnlyRepository.cs</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7a34996a56c9e2d7a8d968d1c17c7b91"></a><!-- doxytag: member="MongoServices::ReadOnlyRepository&#45;g::GetAll" ref="a7a34996a56c9e2d7a8d968d1c17c7b91" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">IEnumerable&lt;T&gt; <a class="el" href="class_mongo_services_1_1_read_only_repository-g.html">MongoServices.ReadOnlyRepository</a>&lt; T &gt;.GetAll </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets a collection of the <a class="el" href="class_mongo_services_1_1_mongo_services_model.html" title="The base MongoServices model that every model must inherit.">MongoServicesModel</a> from the mongoDB database. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>An enumerable list of the <a class="el" href="class_mongo_services_1_1_mongo_services_model.html" title="The base MongoServices model that every model must inherit.">MongoServicesModel</a>s.</dd></dl>

<p>Implements <a class="el" href="interface_mongo_services_1_1_i_read_only_repository-g.html#a517136ce65e505e857fb85ad7a8420a9">MongoServices.IReadOnlyRepository&lt; T &gt;</a>.</p>

<p>Definition at line <a class="el" href="_read_only_repository_8cs_source.html#l00021">21</a> of file <a class="el" href="_read_only_repository_8cs_source.html">ReadOnlyRepository.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a70bce7f9e384fd1e6272ce8228dd739a"></a><!-- doxytag: member="MongoServices::ReadOnlyRepository&#45;g::GetById" ref="a70bce7f9e384fd1e6272ce8228dd739a" args="(ObjectId id)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">T <a class="el" href="class_mongo_services_1_1_read_only_repository-g.html">MongoServices.ReadOnlyRepository</a>&lt; T &gt;.GetById </td>
          <td>(</td>
          <td class="paramtype">ObjectId&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets one <a class="el" href="class_mongo_services_1_1_mongo_services_model.html" title="The base MongoServices model that every model must inherit.">MongoServicesModel</a> from the mongoDB database. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>The "Id" of the document to be retrieved.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The selected <a class="el" href="class_mongo_services_1_1_mongo_services_model.html" title="The base MongoServices model that every model must inherit.">MongoServicesModel</a>.</dd></dl>

<p>Implements <a class="el" href="interface_mongo_services_1_1_i_read_only_repository-g.html#a5df9d4c8113745a5785d450808eb4447">MongoServices.IReadOnlyRepository&lt; T &gt;</a>.</p>

<p>Definition at line <a class="el" href="_read_only_repository_8cs_source.html#l00031">31</a> of file <a class="el" href="_read_only_repository_8cs_source.html">ReadOnlyRepository.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/Development/MongoServices/Source/MongoServices/Repositories/Classes/<a class="el" href="_read_only_repository_8cs_source.html">ReadOnlyRepository.cs</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_mongo_services.html">MongoServices</a>      </li>
      <li class="navelem"><a class="el" href="class_mongo_services_1_1_read_only_repository-g.html">ReadOnlyRepository</a>      </li>
      <li class="footer">Generated on Thu May 26 2011 20:24:48 for MongoServices by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
